package com.kang.mavenweb.service;


import com.kang.mavenweb.dao.ILoginDao;
import com.kang.mavenweb.domain.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class LoginServiceImpl implements ILoginService {

    @Autowired
    private ILoginDao loginDao;

    @Override
    public List<User> login(User user) {
        return loginDao.login (user);
    }
}
